import request from '@/utils/request'

// 查询车辆档案列表
export function listCheliangda(query) {
  return request({
    url: '/basic/carinfo/cheliangda/list',
    method: 'get',
    params: query
  })
}

// 查询车辆档案详细
export function getCheliangda(jcCheliangdaoid) {
  return request({
    url: '/basic/carinfo/cheliangda/' + jcCheliangdaoid,
    method: 'get'
  })
}

// 新增车辆档案
export function addCheliangda(data) {
  return request({
    url: '/basic/carinfo/cheliangda',
    method: 'post',
    data: data
  })
}

// 修改车辆档案
export function updateCheliangda(data) {
  return request({
    url: '/basic/carinfo/cheliangda',
    method: 'put',
    data: data
  })
}

// 删除车辆档案
export function delCheliangda(jcCheliangdaoid) {
  return request({
    url: '/basic/carinfo/cheliangda/' + jcCheliangdaoid,
    method: 'delete'
  })
}
